package com.micromall.repository.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

public class FreightRules extends IdEntity {

	// 模板id
	private Integer                   freightId;
	// 首费
	private Integer                   firstAmount;
	// 首件数量
	private Integer                   firstPiece;
	// 续件
	private Integer                   secondPiece;
	// 首重重量
	private BigDecimal                firstWeight;
	// 续重
	private BigDecimal                secondWeight;
	// 续费
	private Integer                   secondAmount;
	// 默认运费
	private Boolean                   defaul;
	private List<Map<String, Object>> region;
	// 运送地区格式：{"浙江省":["杭州","金华","宁波"],"上海市":["上海市"]}
	@JsonIgnore
	private Map<String, List<String>> regionInternal;

	public Integer getFreightId() {
		return freightId;
	}

	public void setFreightId(Integer freightId) {
		this.freightId = freightId;
	}

	public Integer getFirstAmount() {
		return firstAmount;
	}

	public void setFirstAmount(Integer firstAmount) {
		this.firstAmount = firstAmount;
	}

	public Integer getFirstPiece() {
		return firstPiece;
	}

	public void setFirstPiece(Integer firstPiece) {
		this.firstPiece = firstPiece;
	}

	public Integer getSecondPiece() {
		return secondPiece;
	}

	public void setSecondPiece(Integer secondPiece) {
		this.secondPiece = secondPiece;
	}

	public BigDecimal getFirstWeight() {
		return firstWeight;
	}

	public void setFirstWeight(BigDecimal firstWeight) {
		this.firstWeight = firstWeight;
	}

	public BigDecimal getSecondWeight() {
		return secondWeight;
	}

	public void setSecondWeight(BigDecimal secondWeight) {
		this.secondWeight = secondWeight;
	}

	public Integer getSecondAmount() {
		return secondAmount;
	}

	public void setSecondAmount(Integer secondAmount) {
		this.secondAmount = secondAmount;
	}

	public List<Map<String, Object>> getRegion() {
		return region;
	}

	public void setRegion(List<Map<String, Object>> region) {
		this.region = region;
	}

	public Map<String, List<String>> getRegionInternal() {
		return regionInternal;
	}

	public void setRegionInternal(Map<String, List<String>> regionInternal) {
		this.regionInternal = regionInternal;
	}

	public Boolean getDefaul() {
		return defaul;
	}

	public void setDefaul(Boolean defaul) {
		this.defaul = defaul;
	}
}